package com.lp.controller.iot;

import java.util.Map;

import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

import com.lp.bo.UserAccountInfoBO;
import com.lp.common.RequestURLIOT;
import com.lp.controller.BaseController;

@Controller

public class UserAccountInfoController extends BaseController {
	

	/**
	 * 查询单个
	 */
	@RequestMapping(method = RequestMethod.GET, value = RequestURLIOT.UserAccountInfo.USER_ACCOUNT_INFO)
	public ModelAndView selectOne(HttpServletResponse response, @RequestParam Integer user_id) {
		Map<String, Object> resultMap = getResultMap();
		try {
			UserAccountInfoBO userAccount =  new UserAccountInfoBO() ;
			userAccount.setUser_id(user_id);
			resultMap = service.selectOne("UserAccountInfo.selectDetail",userAccount  );
		} catch (Exception e) {
			exception(e, resultMap, user_id);
		}
		return getModelAndView(response, resultMap);
	}

	
}
